import LDataCannon from "./LDataCannon";
export default class LDataCannonManager 
{
    public static dataList:LDataCannon[] = [];
    public static GetDataById(index:number):LDataCannon
    {    
        if(LDataCannonManager.dataList.length == 0){
            LDataCannonManager.dataList[0] = new LDataCannon(0,1,1,"-9999",1,-9999,-9999,-9999,-9999,-9999);
            LDataCannonManager.dataList[1] = new LDataCannon(1,1,1,"邀请好友获得",5,-9999,-9999,-9999,1,-9999);
            LDataCannonManager.dataList[2] = new LDataCannon(2,1,1,"累计达到50000分",3,-9999,50000,-9999,-9999,-9999);
            LDataCannonManager.dataList[3] = new LDataCannon(3,1,1,"将金币等级升到800%",4,-9999,-9999,70,-9999,-9999);
            LDataCannonManager.dataList[4] = new LDataCannon(4,1,4,"免费获得",2,1,-9999,-9999,-9999,-9999);
            LDataCannonManager.dataList[5] = new LDataCannon(5,1,1,"将离线等级升到800%",6,-9999,-9999,-9999,-9999,70);
            LDataCannonManager.dataList[6] = new LDataCannon(6,1,6,"累计达到100000分",3,-9999,100000,-9999,-9999,-9999);
            LDataCannonManager.dataList[7] = new LDataCannon(7,1,7,"邀请好友获得",5,-9999,-9999,-9999,1,-9999);
            LDataCannonManager.dataList[8] = new LDataCannon(8,1,8,"免费获得",2,1,-9999,-9999,-9999,-9999);
            LDataCannonManager.dataList[9] = new LDataCannon(9,1,9,"免费获得",2,1,-9999,-9999,-9999,-9999);
            LDataCannonManager.dataList[10] = new LDataCannon(10,1,9,"免费获得",2,1,-9999,-9999,-9999,-9999);
            LDataCannonManager.dataList[11] = new LDataCannon(11,1,11,"邀请好友获得",5,-9999,-9999,-9999,1,-9999);
            LDataCannonManager.dataList[12] = new LDataCannon(12,1,12,"免费获得",2,1,-9999,-9999,-9999,-9999);
        }
        return LDataCannonManager.dataList[index]
    }
}
